<template>
	<div id="logo">
  <div  class="hello">
	  <el-divider></el-divider>
	  <h1>{{ msg }}</h1>
	  <el-divider></el-divider>
		  <el-carousel :interval="4000" type="card" height="350px">
		    <el-carousel-item v-for="item in 1" :key="1">
		      <h3 class="medium">
				   <el-button type="text" class="el-icon-orange" size="medium" @click="addForms">添加表单</el-button>
				      <!-- <el-image   :src="src" @click="addForms">
					   </el-image> -->
			  </h3>
		    </el-carousel-item>
			<el-carousel-item v-for="item in 1" :key="3">
			  <h3 class="medium">
				    <el-button type="text" class="el-icon-document" @click="formList">查看已保存表单</el-button>
			  </h3>
			</el-carousel-item>
			<el-carousel-item v-for="item in 1" :key="5">
			  <h3 class="medium">
				    <el-button type="text" class="el-icon-cherry" @click="shouList">已收藏的表单</el-button>
			  </h3>
			</el-carousel-item>
		  </el-carousel>
	
  </div>
 </div>
</template>

<script>
export default {
  name: 'HelloWorld',
   name: "logo",
  
  data () {
    return {
      msg: '欢迎使用智能填表系统！',
    }
  },
  
  methods:{
	  addForms(){
		  this.$router.push('/Add')
	  },
	  formList(){		  
		  this.$router.push('/FormList')
	  },
	  shouList(){
		  this.$router.push('/CollectList')
		}
  },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
	 #logo{
	    background: url("https://cube.elemecdn.com/6/94/4d3ea53c084bad6931a56d5158a48jpeg.jpeg");
	    background-size: 100% 100%;
	    height: 100%;
	  }
h1, h2 {
	 color: #00004b;
	 font-size: 2.0rem;
  font-weight: normal;
}
ul {
  list-style-type: none;
  padding: 0;
}
li {
  display: inline-block;
  margin: 0 10px;
}
a{
	color:#000088;
}
.el-carousel__item h3 {
    color: #2f2f50;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
  }
  
  .el-carousel__item:nth-child(2n) {
    background-color: #77c3d5;
  }
  
  .el-carousel__item:nth-child(2n+1) {
    background-color: #b3e1e6;
  }
.el-button{
	color: #004362;
	font-size: 1.5rem;
}
</style>